# -*- coding: UTF-8 -*-
from flask import Flask, request, jsonify

app = Flask(__name__)


@app.route('/logout', methods=["POST"])
def calculate():
    params = request.form if request.form else request.json
    print(params)
    a = params.get("a", 0)
    b = params.get("b", 0)
    print(a)
    print(b)
    res = {"result": 1}
    return jsonify(res)


if __name__ == '__main__':
    app.run(host='127.0.0.1',
            threaded=True,
            debug=True,
            port=80)